<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>我的晒图</title>
		<meta name="viewport" content="user-scalable=0,width=device-width,initial-scale=1.0" >
		<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
	    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
	    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
	    <script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
	</head>
	<style>
		body{
			    font-family: 'Helvetica Neue',Helvetica,sans-serif;
			    font-size: 17px;
			    line-height: 21px;
			    color: #000;
			    margin: 0px;
			    padding: 0px;
			}
		.mui-bar-nav {
				    top: 0;
				    -webkit-box-shadow: 0 1px 6px #ccc;
				    box-shadow: 0 1px 6px #ccc;
				}
				
				.mui-bar {
				    position: fixed;
				    z-index: 10;
				    right: 0;
				    left: 0;
				    height: 44px;
				    padding-right: 10px;
				    padding-left: 10px;
				    border-bottom: 0;
				    background-color:RGB(88,88,88);
				}
				
				.mui-bar-nav.mui-bar .mui-icon {
				    /*margin-right: -10px;*/
				    margin-left: -10px;
				    padding-right: 10px;
				    padding-left: 10px;
				}
				.mui-bar .mui-icon {
				    font-size: 24px;
				    position: relative;
				    z-index: 20;
				    padding-top: 10px;
				    padding-bottom: 10px;
				}
				
				.mui-pull-left {
				    float: left;
				}
				a {
				    text-decoration: none;
				    color: #FC605A;
				}
				a {
				    background: 0 0;
				}
				
				.mui-bar .mui-title {
				    right: 201px;
				    left: 40px;
				    top: 4px;
				    display: inline-block;
				    overflow: hidden;
				    width: auto;
				    margin: 0;
				    text-overflow: ellipsis;
				}
				.mui-title {
				    font-size: 17px;
				    font-weight: 500;
				    line-height: 44px;
				    position: absolute;
				    display: block;
				    width: 100%;
				    margin: 0 -10px;
				    padding: 0;
				    text-align: center;
				    white-space: nowrap;
				    color: #fff;
				}
				
			 div.col-sm-6.col-md-3{
                border: 1px solid #E0DEDB;  
                width: 268px;
            	height: 235px;  
            	margin-top: 10px;       	
            	margin-left: 41px;
            }
            
            div.col-sm-6.col-md-3> img{
            	margin-top: 10px;
            	width: 237px;
            	height: 206px;
            	border: 1px solid #E0DEDB;
            }
            
            p{
            	text-align: center;
            	font-family: "微软雅黑";
            	font-size: 12px;
            	font-weight: bold;
            }  
	</style>
	<body>
		 
		 <header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"><img src="img/left_fri.png" /></a>
			<h1 class="mui-title">我的晒图</h1>			
		</header>

<div class="row">
   
</div>

<script type="text/javascript">
			$(function() {
	var id=window.localStorage.getItem('userid');
	var url='http://172.24.10.175/workout/api.php/lists/SessionID/1set9n4vfeaj51jmc2pcnncg71/mod/shaitu/userid/'+id;   

            $.ajax({
                type: 'post',
                url: url,
                cache: false,
                dataType: 'jsonp',
                success: function (data) {
                    for (var i =0;i<data.length;i++){                  
                var imgsrc='http://172.24.10.175/workout/Uploads/'+data[i]['thumb0'];
				var id=data[i]['id'];
				$('.row').append("<a href='#'><div class='col-sm-6 col-md-3'><img src="+imgsrc+">"+"<p>"+data[i]['title']+"</div>"+"</a>");
                    }
                }
            });
        });
</script>
	</body>
</html>
